<?php
/**
 * Clase FN para ArFacturaFN
 *
 * @package    
 * @subpackage ArFacturaFN
 * @author     hans
 * @version    SVN:: ArFacturaFN.class.php,v 1.1 2012-05-04 01:17:10 Hans.parra Exp $
 */

require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/common/conexion.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/so/facturas/BFN/BaseArFacturaFN.class.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/so/facturas/FN/ArFacturaLineaFN.class.php');

class ArFacturaFN extends BaseArFacturaFN
{
 public function getArFactura()
  {
  
    $o_ArFacturaBN = $this->selectByPK();
    
    $o_ArFacturaLineaFN = new ArFacturaLineaFN();
    $o_ArFacturaLineaFN->setFacId($this->getFacId());    
    $o_ArFacturaLinea =  $o_ArFacturaLineaFN->selectArFacturaItemDetalle();
    
    $o_ArFacturaBN->setObj_ArFacturaLinea($o_ArFacturaLinea);
    
    return $o_ArFacturaBN;
  
  }
}